import Vue from 'vue'
import app from './App.vue'

// 安装路由
import VueRouter from 'vue-router'
Vue.use(VueRouter) // 挂载路由

// 按需导入mint-ui需要组件
import {Header, Swipe, SwipeItem, Toast} from 'mint-ui'
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

// 导入vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
// 导入自己的router.js
import router from './router.js'
// 导入Mui样式css
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
var vm = new Vue({
    el:'#app',
    render:c=>c(app),
    router // 挂载路由对象到实例上
})
